package com.atguigu.gmall.order.client.impl;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.order.client.OrderFeignClient;
import com.atguigu.gmall.order.model.OrderInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author: atguigu
 * @create: 2023-09-15 11:21
 */
@Slf4j
@Component
public class OrderDegradeFeignClient implements OrderFeignClient {
    @Override
    public Result<Map> orderTradeData() {
        log.error("[订单服务]orderTradeData执行服务降级");
        return null;
    }

    @Override
    public OrderInfo getOrderInfo(Long orderId) {
        log.error("[订单服务]getOrderInfo执行服务降级");
        return null;
    }

    @Override
    public Long submitSeckillOrder(OrderInfo orderInfo) {
        log.error("[订单服务]submitSeckillOrder执行服务降级");
        return null;
    }
}
